From 10cd1a875ddaff97b0d2220d2ad7f650da8976df Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Fri, 20 Feb 2026 23:57:14 +0100 Subject: [PATCH] environment: Use replaceAll() The replace() function expects two parameters, likely the third one was ignored. Use replaceAll() to replace all the occurrences, not just the first one. Fixes: 007b6ca2e ("environment: Add convenience method for implicit animations") Part-of: --- js/ui/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/environment.js b/js/ui/environment.js index f4ff303d7..2e5baa97e 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -159,7 +159,7 @@ function _easeActor(actor, params) { const {promise, callback} = _makeEaseCallback(params, cleanup); // cancel overwritten transitions - const animatedProps = Object.keys(params).map(p => p.replace('_', '-', 'g')); + const animatedProps = Object.keys(params).map(p => p.replaceAll('_', '-')); animatedProps.forEach(p => actor.remove_transition(p)); if (easingDuration > 0 || !isReversed) -- 2.39.5